import java.util.Scanner;

public class Supermarket {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("您是否是会员：");
        String a= input.nextLine();
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入购物商品的总价：");
        double b= sc.nextDouble();
        if(("yes".equals(a))&&b>100) {
            System.out.println("最终要付款的金额为:"+(b*0.8));
        }else  if(("yes".equals(a))&&b<100) {
            System.out.println("最终要付款的金额为:"+(b*0.9));
        }else  if(("no".equals(a))&&b>100) {
            System.out.println("最终要付款的金额为:"+(b*0.9));
        }else  if(("no".equals(a))&&b<100) {
            System.out.println("最终要付款的金额为:"+b);
        }
    }
}
